// 1.0 引入 request.js 文件
import req from '../utils/request.js'

// 2.1 导出商品列表的数据
export function goodsList(query) {
  return req.post('/goods/goodsList', query)
}
// 2.1 导出商品详情的数据
export function goodsDetail(query) {
  return req.post('/goods/goodsInfo', query)
}
// 2.2 导出商品编辑的请求
export function goodsEdit(query) {
  return req.post('/goods/goodsEdit', query)
}
// 2.3 导出分类的请求
export function goodsCate(query) {
  return req.post('/goodscategory/goodscategoryallList', query)
}
// 2.3 导出添加商品的请求
export function goodsAdd(query) {
  return req.post('/goods/goodsAdd', query)
}
